package com.sicau.basedemo.common.myenum;

/**
 * @author ttxxi
 * @version : 1.0.0
 */
public enum PracticeNewsStateEnum {

    AUDITING(0, "审核中"),
    PASS(1, "通过"),
    FAIL(2, "未通过");

    PracticeNewsStateEnum(Integer state, String msg) {
        this.state = state;
        this.userIns = msg;
    }

    /**
     * 用户类型
     */
    private final Integer state;

    /**
     * 用户类型标识
     */
    private final String userIns;



    public Integer getState() {
        return state;
    }


    public String getMsg() {
        return userIns;
    }

    public static PracticeNewsStateEnum getEnum(Integer state) {
        PracticeNewsStateEnum[] practiceNewsStateEnums = values();
        for (PracticeNewsStateEnum practiceNewsStateEnum : practiceNewsStateEnums) {
            if (practiceNewsStateEnum.getState().equals(state)) {
                return practiceNewsStateEnum;
            }
        }
        return null;
    }
}
